package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description 供应商
 */
public interface SaleListGoodsDao {

    Integer saveSaleList(@Param("saleList") SaleList saleList);

    Integer saveSaleListGoods(@Param("saleListGoods") SaleListGoods saleListGoods);

	List<SaleList> selectSaleList(@Param("saleNumber") String saleNumber, @Param("saleListId") Integer saleListId,
	                              @Param("state") Integer state, @Param("sTime") String sTime, @Param("eTime") String eTime);


	List<SaleListGoods> goodsList(@Param("sale_list_goods_id") Integer saleListId);

	Integer delete(@Param("sale_list_id") Integer saleListId);

	Integer updateState(@Param("saleListId")Integer saleListId);

	List<SaleCount> count(@Param("sTime") String sTime, @Param("eTime") String eTime,
	                      @Param("goodsTypeId") Integer goodsTypeId, @Param("codeOrName") String codeOrName);

	List<SaleDataByDay> getSaleDataByDay(@Param("sTime") String sTime, @Param("eTime") String eTime);
}

